<template>
  <view class="custom-navigation-bar">
    <view class="left-button" @click="handleBack">
      <!-- <image
        src="/static/images/向左1.svg"
        style="width: 48rpx; height: 48rpx"
      /> -->
    </view>
    <view class="title">
      {{ title }}
    </view>
    <view class="right-button">
      <!-- 更多 -->
    </view>
  </view>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "首页",
    },
  },
  methods: {
    handleBack() {
      uni.navigateBack();
    },
  },
};
</script>

<style lang="scss">
.custom-navigation-bar {
  display: flex;
  align-items: center;
  // justify-content: space-between;
  height: 88rpx;
  background: #ffffff;
}

.left-button,
.right-button {
  padding: 0 30rpx;
}

.title {
  //   flex: 1;
  text-align: center;
  margin-left: 235rpx;
  font-size: 36rpx;
  font-family: PingFang SC;
  font-weight: bold;
  color: #01000d;
}
</style>
